﻿@{
    Bundle("jquery_validate");
}
           
<script type="text/javascript">
    jQuery(document).ready(function(){
        jQuery('@ID("#form")').validate({
            rules: {
                displayOrder: {
                    required: true,
                    digits: true
                }
            }
        });
    });
</script>
<form id="@ID("form")" action="@Url.Action(Loc.Act("Create"))" method="post">
    <input type="hidden" name="flags" value="None" />
    <table>
        <tr>
            <td>
                <label>@T(Res.Name("DisplayOrder"))</label>
            </td>
            <td>
                <input type="text" name="displayOrder" value="0" />
            </td>
        </tr>
        <tr>
            <td>
                <label>@T(Res.Name("Type"))</label>
            </td>
            <td>
                <ul class="bar">
                    <li>
                        <input type="radio" name="flags" value="Common" />
                    </li>
                    <li>
                        <label>@T(Res.In("API").Of("Enum").Of("LookupAttributeFlags").Name("Common"))</label>
                    </li>
                    <li>
                        <input type="radio" name="flags" value="CatalogItem" />
                    </li>
                    <li>
                        <label>@T(Res.In("API").Of("Enum").Of("LookupAttributeFlags").Name("CatalogItem"))</label>
                    </li>
                    <li>
                        <input type="radio" name="flags" value="CatalogSupplier" />
                    </li>
                    <li>
                        <label>@T(Res.In("API").Of("Enum").Of("LookupAttributeFlags").Name("CatalogSupplier"))</label>
                    </li>
                    <li>
                        <input type="radio" name="flags" value="Publication" />
                    </li>
                    <li>
                        <label>@T(Res.In("API").Of("Enum").Of("LookupAttributeFlags").Name("Publication"))</label>
                    </li>
                </ul>
            </td>
        </tr>
        <tr>
            <td>
                <label>@T(Res.In("API").Of("Enum").Of("LookupAttributeFlags").Name("AllowedForSearch"))</label>
            </td>
            <td>
                <input type="checkbox" name="flags" value="AllowedForSearch" />
            </td>
        </tr>
        <tr>
            <td>
                <label>@T(Res.In("API").Of("Enum").Of("LookupAttributeFlags").Name("Active"))</label>
            </td>
            <td>
                <input type="checkbox" name="flags" value="Active" />
            </td>
        </tr>
    </table>
    <ul class="bar toolbar">
        <li><button class="button" type="submit">@T(Res.In("Common").Of("Act").Name("Submit"))</button></li>
    </ul>
</form>
